package com.skyline.attraction.service;

import com.skyline.attraction.model.Ratyable;
import com.skyline.attraction.type.RatyType;

public interface RatyService {
	/**
	 * 根据RatyObjType 类型返回更新后不同的对象
	 * 
	 * @param <T>
	 * @param id
	 * @param type
	 * @param userId
	 * @param ratyStar
	 * @return
	 */
	public Ratyable ratyStar(Long id, RatyType type, Long userId, Integer ratyStar);

	/**
	 * 判断是否评分函数
	 * 
	 * @param id
	 * @param userId
	 * @return true 为已评
	 */
	public boolean hasRaty(Long id, RatyType type, Long userId);
}
